package sum.Service.Impl;

import org.springframework.stereotype.Service;
import sum.Dao.StudentDao;
import sum.Entity.Student;
import sum.Service.StudentService;

import javax.annotation.Resource;
import java.util.List;
@Service("studentService")
public class StudentServiceImpl implements StudentService {
    @Resource
    private StudentDao studentDao;
    @Override
    public List<Student> queryByConditions(Student student) {
        return this.studentDao.queryByConditions(student);
    }
    @Override
    public Student queryById(String  student_id)
    {
        return this.studentDao.queryById(student_id);
    }
    @Override
    public List<Student> queryByClass(String stu_class){return this.studentDao.queryByClass(stu_class);}
    @Override
    public int edit(Student student){return this.studentDao.edit(student);}
}
